﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace childcare
{
    public partial class Form1 : Form
    {
        private DataTable dt;
        public Form1()
        {
            InitializeComponent();
        }

        public Form1(DataTable dt)
        {
            InitializeComponent();
            this.dt = dt;
        }

        private void Form1_Load(object sender, EventArgs e)
        {
             cr_hocsinh cpt = new cr_hocsinh();
            cpt.SetDataSource(this.dt);

            this.crystalReportViewer1.ReportSource = cpt;
        }

        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {

        }
    }
}
